<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Element Editing</title>
    <style>
        body {
            font-family: 'Palatino Linotype' serif;
        }

        h1 {
            font-size: large;
        }

        div {
            margin-top: 15px;
            margin-bottom: 20px;
        }

        button {
            padding: 3px;
        }

        #editableElement {
            background: #F0F0F0;
            padding: 5px;
        }
    </style>

    <script>
        function startEdit() {
            var element = document.getElementById("editableElement");
            element.contentEditable = true;
        }
        
        function stopEdit() {
            var element = document.getElementById("editableElement");
            element.contentEditable = false;

            alert("Youe edited content: " + element.innerHTML);
        }
    </script>
</head>
<body>
    <h1>Editable &lt;div&gt; Below:</h1>
    <div id="editableElement">You can edit this text, if you'd like.</div>
    <div>
        <button onclick="startEdit()">Start Editing</button>
        <button onclick="stopEdit()">Stop Editing</button>
    </div>
</body>
</html>